package com.iss.itemplate.dao.jpa;

import com.iss.itemplate.dao.HelloDao;
import com.iss.itemplate.domain.App;
import org.springframework.stereotype.Repository;

/**
 * **********************************************************************
 * <p/>
 * iServiceSoft Inc © - 2009 All Rights Reserved
 * _____________________________________________
 * <p/>
 * NOTICE:  All information contained herein is, and remains
 * the property of iServiceSoft. Intellectual and technical concepts
 * contained herein are proprietary of iServiceSoft and may be covered
 * by U.S. and Foreign Patents, patents in process, and are protected
 * by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from iServiceSoft Incorporated.
 * <p/>
 * ***********************************************************************
 */

@Repository("helloDaoJpa")
public class HelloDaoJpa extends GenericJpaDao<App, Long> implements HelloDao {
   public HelloDaoJpa() {
      super(App.class);
   }

   @Override
   public String getAppName() {
      App app = findById(1L);
      return app.getName();
   }

   @Override
   public App getApp() {
      App app = findById(1L);
      return app;
   }
}
